KtorReadStandardCrudRepo

class KtorReadStandardCrudRepo<ObjectType, IdType>(baseUrl: String, unifiedRequester: UnifiedRequester, objectsSerializer: KSerializer<ObjectType>, objectsSerializerNullable: KSerializer<ObjectType?>, idsSerializer: KSerializer<IdType>) : ReadStandardCRUDRepo<ObjectType, IdType>

Constructors

KtorReadStandardCrudRepo
Link copied to clipboard
fun <ObjectType, IdType> KtorReadStandardCrudRepo(baseUrl: String, client: <ERROR CLASS>, objectsSerializer: KSerializer<ObjectType>, objectsSerializerNullable: KSerializer<ObjectType?>, idsSerializer: KSerializer<IdType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat)

Functions

contains
Link copied to clipboard
open suspend override fun contains(id: IdType): Boolean
count
Link copied to clipboard
open suspend override fun count(): Long
getById
Link copied to clipboard
open suspend override fun getById(id: IdType): ObjectType?
getByPagination
Link copied to clipboard
open suspend override fun getByPagination(pagination: Pagination): PaginationResult<ObjectType>